package com.gs.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gs.pojo.Passenger;
import com.gs.pojo.ReceiveTarget;

public interface ReceiveTargetDao {
	/**
	 * 获取团队数量
	 * @param txtname
	 * @return
	 */
	long receiveTargetCount(@Param("txtname")String txtname);
	/**
	 * 根据currentPage和pageSize分页查询团队信息
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	List<ReceiveTarget> getReceiveTargetList(@Param("txtname")String txtname,
			  							 @Param("currentPage")int currentPage,
			  							 @Param("pageSize")int pageSize);



	//查找团队信息(根据团队名称模糊查询)
	List<ReceiveTarget> ajaxSelect(String teamName);
	/**
	 * 验证团队编号信息
	 * @param teamCode
	 * @return
	 */
	Integer YZ(String teamCode);
	/**
	 * 添加接待对象
	 * @param receiveTarget
	 * @return
	 */
	Integer addReceiveTarget(ReceiveTarget receiveTarget);
	/**
	 * 通过id查询接待对象
	 * @param id
	 * @return
	 */
	ReceiveTarget getReceiveTargetByID(Integer id);
	/**
	 * 修改接待对象
	 * @param receiveTarget
	 * @return
	 */
	Integer updateReceiveTarget(ReceiveTarget receiveTarget);
	/**
	 * 通过id删除接待对象
	 * @return
	 */
	Integer delReceiveTargetByID(Integer id);

}
